Add lookup_table_v2 BF16 op#33172
Conversation
|
Thanks for your contribution! |
|
|
||
|
|
||
| def _lookup(weights, ids, flat_ids): | ||
| def _lookup(weights, ids, flat_ids, op_type="lookup_table"): |
There was a problem hiding this comment.
Maybe "op_version" would be better? Now it suggests that this function is for different operator types.
Hi, here only approval needed or something else need to be fixed? |
|
@lidanqing-intel Yes, only this approval is needed. |
|
@wozna Please try to set self.is_bfloat16_op() or set op datatype to bf16, to avoid the approval |
I removed that, but still, approval for |
|
@wzzju Could you please start your review? PR-CI-APPROVAL needs approval to pass. |
|
Initially, I used |

PR types
New features
PR changes
OPs
Describe
This PR adds BF16 support for FWD and BWD lookup_table_v2 op.
Added UT that reuses test
test_lookup_table_bf16_op.